package upicgame.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="game")
public class Game {
	private Integer id;
	private String name;
	private double price;
	private double discountprice;
	private String img;
	private String tag;
	private String description;
	private String platform;
	private String developer;

	public Game() {
		
	}
	public Game(Integer id) {
		this.id = id;
	}
	public Game(Integer id, String name, double price, double discountprice, String img, String tag, String description,
			String platform, String developer) {
		super();
		this.id = id;
		this.name = name;
		this.price = price;
		this.discountprice = discountprice;
		this.img = img;
		this.tag = tag;
		this.description = description;
		this.platform = platform;
		this.developer = developer;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public double getDiscountprice() {
		return discountprice;
	}
	public void setDiscountprice(double discountprice) {
		this.discountprice = discountprice;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String discription) {
		this.description = discription;
	}
	public String getPlatform() {
		return platform;
	}
	public void setPlatform(String platform) {
		this.platform = platform;
	}
	public String getDeveloper() {
		return developer;
	}
	public void setDeveloper(String developer) {
		this.developer = developer;
	}

	@Override
	public String toString() {
		return "Game [id=" + id + ", name=" + name + ", price=" + price + ", discountprice=" + discountprice + ", img="
				+ img + ", tag=" + tag + ", description=" + description + ", platform=" + platform + ", developer="
				+ developer + "]";
	}
	
}
